package com.tao.demo.domain.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.Set;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class FileChunkResultDTO implements Serializable {
   @Serial
   private static final long serialVersionUID = 1L;
   /**
    * 是否跳过上传
    */
   private Boolean skipUpload;
   
   /**
    * 已上传分片的集合
    */
   private Set<Integer> uploaded;
   
   public FileChunkResultDTO(boolean skipUpload){
      this.skipUpload = skipUpload;
      this.uploaded = null;
   }
}